package com.designpatternspart2.behavioraldesignpatterns.commandpattern;

/**
 *
 * @author Lance
 */
public class LunchCommand implements Command
{

    private Lunch lunch;

    public LunchCommand(Lunch lunch)
    {
        this.lunch = lunch;
    }

    @Override
    public void execute()
    {
        getLunch().makeLunch();
    }

    public Lunch getLunch()
    {
        return lunch;
    }

    public void setLunch(Lunch lunch)
    {
        this.lunch = lunch;
    }
}
